package com.hh.planCategory.mapper;

import com.hh.planCategory.vo.PlanCategoryVo;
import com.hh.planCategory.vo.StatusChangeVo;
import com.hh.planCategory.bean.PlanCategory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PlanCategoryMapper {
    PlanCategory judgeCodeExist(String code);

    PlanCategory judgeNameExist(String name);

    List<PlanCategory> selectAllPlanCategory(PlanCategoryVo planCategoryVo);

    int insert(PlanCategory record);

    PlanCategory selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(PlanCategory record);

    int updateStatusById(StatusChangeVo statusChangeVo);
    PlanCategory judgeUpdateName(Integer id, String name);

    List<PlanCategory> selectAllAsList();
}